###
 # @Description: 
 # @Version: 1.0
 # @Autor: chen_yt
 # @Date: 2022-07-20 14:56:19
 # @LastEditors: chen_yt
 # @LastEditTime: 2022-07-20 15:05:19
### 
#!/bin/sh
sed -i 's|VUE_APP_SAAS_MODE|'${VUE_APP_SAAS_MODE}'|g' /usr/share/nginx/html  

cd /etc/nginx/conf.d

envsubst '${ORIGIN},${HOST},${SUB_APP_BPM},${SUB_APP_WP},${FILE_PREVIEW}' < nginx.template > default.conf  

cat default.conf 

nginx -g 'daemon off;'